package staticInnerClass;

import org.junit.jupiter.api.Test;

/**
 * @Author Zhang Chao
 * @Date 2021/5/25 9:51
 * @Version 1.0
 */

public class TestDriver {

    //测试内部类
    @Test
    public void test01(){
        //创建一个学生类
        Student student = new Student();
        student.setStuName("安东尼");
        student.sayHello();


        //【调用学生类的静态内部类】
        Student.StuFamilyInfo stuFamilyInfo = new Student.StuFamilyInfo("安东尼爸爸","123456789");
        stuFamilyInfo.printFamiliInfo();
    }
}
